<materials>
	<brush name="ice" type="ground"/>
	<brush name="icy earth" type="ground"/>
	<brush name="icy mountain" type="ground"/>
	<brush name="snowy mountain" type="ground"/>
	
	<brush name="void" type="ground" server_lookid="100" z-order="95">
		<item id="100" chance="10"/>
	</brush>
	
	<brush name="grass" type="ground" server_lookid="4526" z-order="3500">
		<item id="4526" chance="2500"/>
		<item id="4527" chance="10"/>
		<item id="4528" chance="25"/>
		<item id="4529" chance="25"/>
		<item id="4530" chance="25"/>
		<item id="4531" chance="25"/>
		<item id="4532" chance="25"/>
		<item id="4533" chance="25"/>
		<item id="4534" chance="15"/>
		<item id="4535" chance="25"/>
		<item id="4536" chance="25"/>
		<item id="4537" chance="25"/>
		<item id="4538" chance="20"/>
		<item id="4539" chance="20"/>
		<item id="4540" chance="20"/>
		<item id="4541" chance="20"/>
		<item id="470" chance="0"/>
		
		<border align="outer" id="2"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="grass (alternate border)" type="ground" server_lookid="9044" z-order="5100">
		<item id="9043" chance="2500"/>
		<item id="9044" chance="10"/>
		<item id="9045" chance="25"/>
		<item id="9046" chance="25"/>
		<item id="9047" chance="25"/>
		<item id="9048" chance="25"/>
		<item id="9049" chance="25"/>
		<item id="9050" chance="25"/>
		<item id="9051" chance="15"/>
		<item id="9052" chance="25"/>
		<item id="9053" chance="25"/>
		<item id="9054" chance="25"/>
		<item id="9055" chance="20"/>
		<item id="9056" chance="20"/>
		<item id="9057" chance="20"/>
		<item id="9058" chance="20"/>
		
		<border align="outer" id="120"/>
		<border align="outer" to="none" id="120"/>
		<friend name="grass"/>
	</brush>
	
	<brush name="dried grass" type="ground" server_lookid="8326" z-order="3530">
		<item id="8326" chance="2500"/>
		<item id="8327" chance="2500"/>
		<item id="8328" chance="2500"/>
		<item id="8329" chance="2500"/>
		<item id="8330" chance="2500"/>
		<item id="8331" chance="2500"/>
		<item id="8332" chance="2500"/>
		<item id="8333" chance="2500"/>
		<item id="8334" chance="2500"/>
		<item id="8347" chance="2500"/>
		<item id="8348" chance="2500"/>
		
		<border align="outer" id="128"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="grass open stone pile" type="ground" server_lookid="469" z-order="3000">
		<item id="469" chance="1"/>
		
		<border align="outer" id="2"/>
		<friend name="grass"/>
		<friend name="grass (alternate border)"/>
	</brush>
	
	<brush name="grass closed stone pile" type="ground" server_lookid="468" z-order="3000">
		<item id="468" chance="1"/>
		
		<border align="outer" id="2"/>
		<friend name="grass"/>
		<friend name="grass (alternate border)"/>
		<friend name="grass open stone pile"/>
	</brush>
	
	<brush name="grass pitfall" type="ground" server_lookid="293" z-order="3000">
		<item id="293" chance="1"/>
		
		<border align="outer" id="2"/>
		<friend name="grass"/>
		<friend name="grass (alternate border)"/>
		<friend name="grass open stone pile"/>
		<friend name="grass closed stone pile"/>
	</brush>

	<brush name="grass pitfall2" type="ground" server_lookid="294" z-order="3000">
		<item id="294" chance="1"/>
		
		<border align="outer" id="2"/>
		<friend name="grass"/>
		<friend name="grass (alternate border)"/>
		<friend name="grass open stone pile"/>
		<friend name="grass closed stone pile"/>
		<friend name="grass pitfall"/>
	</brush>
	
	<brush name="sea" type="ground" server_lookid="4608" z-order="6000">
		<item id="4608" chance="3"/>
		<item id="4609" chance="1"/>
		<item id="4610" chance="1"/>
		<item id="4611" chance="1"/>
		<item id="4612" chance="1"/>
		<item id="4613" chance="1"/>
		<item id="4614" chance="1"/>
		<item id="4615" chance="1"/>
		<item id="4616" chance="1"/>
		<item id="4617" chance="1"/>
		<item id="4618" chance="1"/>
		<item id="4619" chance="1"/>
		<item id="4664" chance="1"/>
		<item id="4665" chance="1"/>
		<item id="4666" chance="1"/>
		
		<item id="4620" chance="0"/>
		<item id="4621" chance="0"/>
		<item id="4622" chance="0"/>
		<item id="4623" chance="0"/>
		<item id="4624" chance="0"/>
		<item id="4625" chance="0"/>
		
		<item id="5757" chance="0"/>
		<item id="5756" chance="0"/>
		<item id="5755" chance="0"/>
		<item id="5759" chance="0"/>
		<item id="5760" chance="0"/>
		<item id="5758" chance="0"/>
		<item id="5761" chance="0"/>
		
		<border align="outer" id="5"/>
		<border align="inner" to="ice" id="48"/>
	</brush>
	
	<brush name="walkable sea" type="ground" server_lookid="4608" z-order="6000">
		<item id="4820" chance="3"/>
		<item id="4821" chance="1"/>
		<item id="4822" chance="1"/>
		<item id="4823" chance="1"/>
		<item id="4824" chance="1"/>
		<item id="4825" chance="1"/>
		
		<friend name="sea"/>
		
		<border align="outer" id="5"/>
		<border align="inner" to="ice" id="48"/>
	</brush>
	
	<brush name="ice" type="ground" server_lookid="671" z-order="5500">
		<item id="671" chance="2"/>
		<item id="6683" chance="1"/>
		<item id="6684" chance="1"/>
		<item id="6685" chance="1"/>
		<item id="6686" chance="1"/>
		<item id="7200" chance="0"/>
		<item id="7236" chance="0"/>
		<item id="7237" chance="0"/>
		
		<border align="outer" id="43"/>
		<border align="inner" to="sea" id="6"/>
		<border align="inner" to="walkable sea" id="6"/>
		<border align="inner" to="none" id="6"/>
	</brush>
	
	<brush name="ice open stone pile" type="ground" server_lookid="484" z-order="5500">
		<item id="484" chance="1"/>
		
		<border align="outer" id="43"/>
		<border align="inner" to="sea" id="6"/>
		<border align="inner" to="walkable sea" id="6"/>
		<border align="inner" to="none" id="6"/>
		
		<friend name="ice"/>
	</brush>
	
	<brush name="ice closed stone pile" type="ground" server_lookid="483" z-order="5500">
		<item id="483" chance="1"/>
		
		<border align="outer" id="43"/>
		<border align="inner" to="sea" id="6"/>
		<border align="inner" to="walkable sea" id="6"/>
		<border align="inner" to="none" id="6"/>
		
		<friend name="ice"/>
		<friend name="ice open stone pile"/>
	</brush>
	
	<brush name="hole in the ice" type="ground" server_lookid="485" z-order="5500">
		<item id="485" chance="1"/>
		
		<border align="outer" id="43"/>
		<border align="inner" to="sea" id="6"/>
		<border align="inner" to="walkable sea" id="6"/>
		<border align="inner" to="none" id="6"/>
		
		<friend name="ice"/>
		<friend name="ice open stone pile"/>
		<friend name="ice closed stone pile"/>
	</brush>
	
	<brush name="snow" type="ground" server_lookid="6838" z-order="5505">
		<item id="6580" chance="10"/>
		<item id="6581" chance="10"/>
		<item id="6582" chance="10"/>
		<item id="6583" chance="10"/>
		<item id="6584" chance="10"/>
		<item id="6585" chance="10"/>
		<item id="6586" chance="10"/>
		<item id="6587" chance="10"/>
		<item id="6588" chance="10"/>
		<item id="6589" chance="10"/>
		<item id="6590" chance="10"/>
		<item id="6591" chance="10"/>
		<item id="6592" chance="10"/>
		<item id="6593" chance="10"/>
		<item id="670" chance="240"/>
		<item id="6594" chance="0"/>
		<item id="6595" chance="0"/>
		<item id="6596" chance="0"/>
		<item id="6597" chance="0"/>
		<item id="6598" chance="0"/>
		<item id="6599" chance="0"/>
		<item id="6600" chance="0"/>
		<item id="6601" chance="0"/>
		<item id="6602" chance="0"/>
		<item id="6603" chance="0"/>
		<item id="6604" chance="0"/>
		<item id="6605" chance="0"/>
		<item id="6606" chance="0"/>
		<item id="6607" chance="0"/>
		<item id="6608" chance="0"/>
		<item id="6612" chance="0"/>
		<item id="6613" chance="0"/>
		<item id="6614" chance="0"/>
		<item id="6615" chance="0"/>
		<item id="6616" chance="0"/>
		<item id="6617" chance="0"/>
		<item id="6618" chance="0"/>
		<item id="6619" chance="0"/>
		<item id="6620" chance="0"/>
		<item id="6621" chance="0"/>
		<item id="6622" chance="0"/>
		<item id="6623" chance="0"/>
		<item id="6624" chance="0"/>
		<item id="6625" chance="0"/>
		<item id="6626" chance="0"/>
		<item id="6917" chance="0"/>
		<item id="6918" chance="0"/>
		<item id="6919" chance="0"/>
		<item id="6920" chance="0"/>
		<item id="6921" chance="0"/>
		<item id="6922" chance="0"/>
		<item id="6923" chance="0"/>
		<item id="6924" chance="0"/>
		
		<border align="inner" to="sea" id="33"/>
		<border align="inner" to="walkable sea" id="33"/>
		<border align="outer" id="6">
			-- snow vs. grass/whatever with normal sea border --
			<specific>
				<conditions>
					<match_border id="6" edge="s"/>
					<match_border id="5"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="e" with="6652"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="n"/>
					<match_border id="5"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="e" with="6656"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="s"/>
					<match_border id="5"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="w" with="6654"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="n"/>
					<match_border id="5"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="w" with="6658"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="e"/>
					<match_border id="5"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="s" with="6653"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="w"/>
					<match_border id="5"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="s" with="6657"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="e"/>
					<match_border id="5"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="n" with="6651"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="w"/>
					<match_border id="5"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="n" with="6655"/>
				</actions>
			</specific>
			
			-- snow vs. frozen mud border --
			<specific>
				<conditions>
					<match_border id="6" edge="s"/>
					<match_border id="47"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="e" with="6672"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="n"/>
					<match_border id="47"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="e" with="6668"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="s"/>
					<match_border id="47"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="w" with="6674"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="n"/>
					<match_border id="47"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="w" with="6670"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="e"/>
					<match_border id="47"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="s" with="6673"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="w"/>
					<match_border id="47"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="s" with="6669"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="e"/>
					<match_border id="47"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="n" with="6671"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="w"/>
					<match_border id="47"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="n" with="6667"/>
				</actions>
			</specific>
		</border>
		
		<border align="inner" to="ice" id="50">
			-- West --
			
			<specific>
				<conditions>
					<match_border id="33" edge="dsw"/>
					<match_border id="50"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dsw" with="6693"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="dnw"/>
					<match_border id="50"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dnw" with="6691"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="csw"/>
					<match_border id="33" edge="cnw"/>
					<match_border id="50" edge="w"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cnw"/>
					<match_border id="50" edge="w"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="csw"/>
					<match_border id="50" edge="w"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			-- East --
			
			<specific>
				<conditions>
					<match_border id="33" edge="dse"/>
					<match_border id="50"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dse" with="6689"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="dne"/>
					<match_border id="50"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dne" with="6687"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cse"/>
					<match_border id="33" edge="cne"/>
					<match_border id="50" edge="e"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cne"/>
					<match_border id="50" edge="e"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cse"/>
					<match_border id="50" edge="e"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			-- North --
			
			<specific>
				<conditions>
					<match_border id="33" edge="dnw"/>
					<match_border id="50"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dnw" with="6694"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="dne"/>
					<match_border id="50"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dne" with="6692"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cnw"/>
					<match_border id="33" edge="cne"/>
					<match_border id="50" edge="n"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cne"/>
					<match_border id="50" edge="n"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cnw"/>
					<match_border id="50" edge="n"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			-- South --
			
			<specific>
				<conditions>
					<match_border id="33" edge="dsw"/>
					<match_border id="50"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dsw" with="6690"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="dse"/>
					<match_border id="50"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="33" edge="dse" with="6688"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="csw"/>
					<match_border id="33" edge="cse"/>
					<match_border id="50" edge="s"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="cse"/>
					<match_border id="50" edge="s"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="33" edge="csw"/>
					<match_border id="50" edge="s"/>
				</conditions>
				<actions>
					<delete_borders/>
				</actions>
			</specific>
		</border>
	</brush>
	
	<brush name="lawn" type="ground" lookid="106" z-order="2800">
		<item id="106" chance="8"/>
		<item id="108" chance="1"/>
		<item id="109" chance="1"/>
		
		<border align="outer" id="8"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="cave" type="ground" lookid="351" z-order="2000">
		<item id="351" chance="6"/>
		<item id="352" chance="1"/>
		<item id="353" chance="1"/>
		<item id="354" chance="1"/>
		<item id="355" chance="1"/>
		
		<border align="outer" id="7"/>
	</brush>
	
	<brush name="cave (alternate border)" type="ground" server_lookid="9025" z-order="5090">
		<item id="9021" chance="6"/>
		<item id="9022" chance="1"/>
		<item id="9023" chance="1"/>
		<item id="9024" chance="1"/>
		<item id="9025" chance="1"/>
		
		<border align="outer" id="121"/>
		<border align="outer" id="121" to="none"/>
	</brush>
	
	<brush name="cave hole" type="ground" server_lookid="383" z-order="2000">
		<item id="383" chance="1"/>
		
		<border align="outer" id="7"/>
		<friend name="cave"/>
		<friend name="cave (alternate border)"/>
	</brush>
	
	<brush name="cave ropespot" type="ground" server_lookid="384" z-order="2000">
		<item id="384" chance="1"/>
		
		<border align="outer" id="7"/>
		<friend name="cave"/>
		<friend name="cave hole"/>
		<friend name="cave (alternate border)"/>
	</brush>
	
	<brush name="cave small hole" type="ground" server_lookid="385" z-order="2000">
		<item id="392" chance="1"/>
		
		<border align="outer" id="7"/>
		<friend name="cave"/>
		<friend name="cave hole"/>
		<friend name="cave ropespot"/>
		<friend name="cave (alternate border)"/>
	</brush>
	
	<brush name="cave pickhole" type="ground" server_lookid="392" z-order="2000">
		<item id="385" chance="1"/>
		
		<border align="outer" id="7"/>
		<friend name="cave"/>
		<friend name="cave hole"/>
		<friend name="cave ropespot"/>
		<friend name="cave small hole"/>
		<friend name="cave (alternate border)"/>
	</brush>
	
	<brush name="dry earth" type="ground" server_lookid="836" z-order="510">
		<item id="836" chance="1"/>
	</brush>
	
	<brush name="sand (thick border)" type="ground"/>
	
	<brush name="sand" type="ground" server_lookid="231" z-order="3000">
		<item id="231" chance="1"/>
		<item id="8315" chance="0"/> 
		<item id="8316" chance="0"/> 
		<item id="8317" chance="0"/> 
		<item id="8318" chance="0"/> 
		<item id="8319" chance="0"/> 
		<item id="8320" chance="0"/> 
		<item id="8321" chance="0"/> 
		<item id="8322" chance="0"/> 
		
		<border align="outer" id="16"/>
		<border align="inner" to="sea" ground_equivalent="231">
			<borderitem edge="n"   item="4632"/>
			<borderitem edge="e"   item="4635"/>
			<borderitem edge="s"   item="4634"/>
			<borderitem edge="w"   item="4633"/>
			<borderitem edge="cnw" item="4643"/>
			<borderitem edge="cne" item="4642"/>
			<borderitem edge="csw" item="4641"/>
			<borderitem edge="cse" item="4640"/>
			<borderitem edge="dnw" item="4639"/>
			<borderitem edge="dne" item="4638"/>
			<borderitem edge="dsw" item="4637"/>
			<borderitem edge="dse" item="4636"/>
			
			-- Handles for the 8 different specific cases which might occur with water/sand borders --
			<specific>
				<conditions>
					<match_item id="4634"/>
					<match_border id="2"  edge="e"/>
				</conditions>
				<actions>
					<replace_item id="4634" with="4661"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4632"/>
					<match_border id="2"  edge="e"/>
				</conditions>
				<actions>
					<replace_item id="4632" with="4660"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4633"/>
					<match_border id="2"  edge="s"/>
				</conditions>
				<actions>
					<replace_item id="4633" with="4662"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4635"/>
					<match_border id="2"  edge="s"/>
				</conditions>
				<actions>
					<replace_item id="4635" with="4663"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4634"/>
					<match_border id="2"  edge="e"/>
				</conditions>
				<actions>
					<replace_item id="4634" with="4661"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4632"/>
					<match_border id="2"  edge="w"/>
				</conditions>
				<actions>
					<replace_item id="4632" with="4656"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4634"/>
					<match_border id="2"  edge="w"/>
				</conditions>
				<actions>
					<replace_item id="4634" with="4657"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4635"/>
					<match_border id="2"  edge="n"/>
				</conditions>
				<actions>
					<replace_item id="4635" with="4659"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_item id="4633"/>
					<match_border id="2"  edge="n"/>
				</conditions>
				<actions>
					<replace_item id="4633" with="4658"/>
				</actions>
			</specific>
		</border>
		<border align="inner" to="none" id="1"/>
		
		<friend name="sand (thick border)"/>
	</brush>
	
	<brush name="sand (thick border)" type="ground" server_lookid="231" z-order="5105">
		<item id="9059" chance="1"/>
		
		<border align="outer" id="129"/>
		<border align="outer" id="129" to="none"/>
		
		<friend name="sand"/>
	</brush>
	
	<brush name="sand open stone pile" type="ground" server_lookid="482" z-order="3000">
		<item id="482" chance="1"/>
		
		<border align="outer" id="16"/>
		<border align="inner" to="none" id="1"/>
		
		<friend name="sand"/>
		<friend name="sand (thick border)"/>
	</brush>
	
	<brush name="sand closed stone pile" type="ground" server_lookid="481" z-order="3000">
		<item id="481" chance="1"/>
		
		<border align="outer" id="16"/>
		<border align="inner" to="none" id="1"/>
		
		<friend name="sand"/>
		<friend name="sand open stone pile"/>
		<friend name="sand (thick border)"/>
	</brush>
	
	<brush name="sand scarab hole" type="ground" server_lookid="489" z-order="3000">
		<item id="489" chance="1"/>
		<item id="5731" chance="0"/>
		
		<border align="outer" id="16"/>
		<border align="inner" to="none" id="1"/>
		
		<friend name="sand"/>
		<friend name="sand open stone pile"/>
		<friend name="sand closed stone pile"/>
		<friend name="sand (thick border)"/>
	</brush>
	
	<brush name="sand dark dune" type="ground" server_lookid="8323" z-order="3000">
		<item id="8323" chance="1"/>
		
		<border align="outer" id="16"/>
		<border align="inner" to="none" id="1"/>
		
		<friend name="sand"/>
		<friend name="sand open stone pile"/>
		<friend name="sand closed stone pile"/>
		<friend name="sand (thick border)"/>
		<friend name="sand scarab hole"/>
	</brush>
	
	
	<brush name="earth" type="ground" lookid="101" z-order="10500">
		<item id="101" chance="150"/>
		<item id="5711" chance="1"/>
		<item id="5712" chance="1"/>
		<item id="5713" chance="1"/>
		<item id="5714" chance="1"/>
		<item id="5715" chance="1"/>
		<item id="5716" chance="1"/>
		<item id="5717" chance="1"/>
		<item id="5718" chance="1"/>
		<item id="5719" chance="1"/>
		<item id="5720" chance="1"/>
		<item id="5721" chance="1"/>
		<item id="5722" chance="1"/>
		<item id="5723" chance="1"/>
		<item id="5724" chance="1"/>
		<item id="5725" chance="1"/>
		<item id="5726" chance="1"/>
		
		<border align="outer" id="21"/>
		<border align="outer" to="none" id="21"/>
	</brush>
	
	<brush name="earth (stone border)" type="ground" server_lookid="9040" z-order="10510">
		<item id="9026" chance="150"/>
		<item id="9027" chance="1"/>
		<item id="9028" chance="1"/>
		<item id="9029" chance="1"/>
		<item id="9030" chance="1"/>
		<item id="9031" chance="1"/>
		<item id="9032" chance="1"/>
		<item id="9033" chance="1"/>
		<item id="9034" chance="1"/>
		<item id="9035" chance="1"/>
		<item id="9036" chance="1"/>
		<item id="9037" chance="1"/>
		<item id="9038" chance="1"/>
		<item id="9039" chance="1"/>
		<item id="9040" chance="1"/>
		<item id="9041" chance="1"/>
		<item id="9042" chance="1"/>
		
		<border align="outer" id="22">
			-- Handles for the 8 different specific cases which might occur with icy earth/stone earth borders --
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="22"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cse" with="5638"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="22"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cne" with="5684"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="22"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="csw" with="5638"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="22"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cnw" with="5683"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="22"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cse" with="5637"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="22"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="csw" with="5686"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="22"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cne" with="5637"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="22"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cnw" with="5685"/>
				</actions>
			</specific>
		</border>
		<border align="outer" to="none" id="22">
			-- Handles for the 8 different specific cases which might occur with icy earth/stone earth borders --
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="22"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cse" with="5638"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="22"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cne" with="5684"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="22"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="csw" with="5638"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="22"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cnw" with="5683"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="22"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cse" with="5637"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="22"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="csw" with="5686"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="22"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cne" with="5637"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="22"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="22" edge="cnw" with="5685"/>
				</actions>
			</specific>
		</border>
		<friend name="earth"/>
	</brush>
	
	<brush name="cobblestone" type="ground" server_lookid="724" z-order="100">
		<item id="724" chance="1000"/>
	</brush>
	
	<brush name="dark cobblestone" type="ground" server_lookid="8423" z-order="1610">
		<item id="8423" chance="1000"/>
		<item id="8425" chance="1000"/>
		<item id="8426" chance="1000"/>
		<item id="8427" chance="1000"/>
		<item id="8428" chance="1000"/>
		<item id="8429" chance="1000"/>
		<item id="8430" chance="1000"/>
		<item id="8431" chance="1000"/>
		
		<border align="outer" id="127"/>
	</brush>
	
	<brush name="ugly cobblestone" type="ground" server_lookid="8424" z-order="1600">
		<item id="8424" chance="1000"/>
		<item id="8432" chance="1000"/>
		<item id="8433" chance="1000"/>
		<item id="8434" chance="1000"/>
		
		<border align="outer" id="126"/>
	</brush>
	
	<brush name="grassy cobblestone" type="ground" server_lookid="791" z-order="1500">
		<item id="791" chance="1000"/>
	</brush>
	
	<brush name="jungle grass" type="ground" server_lookid="3263" z-order="3600">
		<item id="3263" chance="1"/>
		
		<border align="outer" id="9"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="jungle dirt" type="ground" server_lookid="3264" z-order="505">
		<item id="3264" chance="11"/>
		<item id="3265" chance="1"/>
		
		<border align="outer" id="9"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="mountain ground" type="ground" server_lookid="918" z-order="2500">
		<item id="918" chance="1000"/>
		
		<border align="inner" to="sea" id="47"/>
		<border align="outer" id="10"/>
	</brush>
	
	<brush name="dirt mountain ground" type="ground" server_lookid="8913" z-order="2545">
		<item id="8913" chance="1000"/>
		<item id="8914" chance="1000"/>
		<item id="8915" chance="1000"/>
		<item id="8916" chance="1000"/>
		<item id="8917" chance="1000"/>
		
		<border align="outer" id="125"/>
		<border align="outer" id="125" to="none"/>
	</brush>
	
	<brush name="dirt mountain ground (thick border)" type="ground" server_lookid="8913" z-order="6110">
		<item id="8362" chance="1000"/>
		<item id="8363" chance="1000"/>
		<item id="8364" chance="1000"/>
		
		<border align="outer" id="132"/>
		<border align="outer" id="132" to="none"/>
	</brush>
	
	<brush name="mountain top ground" type="ground" server_lookid="4405" z-order="1005">
		<item id="4405" chance="1"/>
		<item id="4406" chance="1"/>
		<item id="4407" chance="1"/>
		<item id="4408" chance="1"/>
		<item id="4409" chance="1"/>
		<item id="4410" chance="1"/>
		<item id="4411" chance="1"/>
		<item id="4412" chance="1"/>
		<item id="4413" chance="1"/>
		<item id="4414" chance="1"/>
		<item id="4415" chance="1"/>
		<item id="4416" chance="1"/>
		<item id="4417" chance="1"/>
		<item id="4418" chance="1"/>
		<item id="4419" chance="1"/>
		<item id="4420" chance="1"/>
		<item id="4421" chance="1"/>
		
		<border align="outer" id="20"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="lava" type="ground" server_lookid="598" z-order="150">
		<item id="598" chance="11"/>
		<item id="599" chance="1"/>
		<item id="600" chance="1"/>
		<item id="601" chance="1"/>
		
		<border align="inner" to="cave" id="18"/>
		<border align="inner" to="cave (alternate border)" id="18"/>
		<border align="inner" to="mountain top ground" id="30"/>
		<friend name="sea"/>
	</brush>
	
	<brush name="rocky ground" type="ground" server_lookid="4570" z-order="1004">
		<item id="4570" chance="100"/>
		<item id="4571" chance="100"/>
		<item id="4572" chance="100"/>
		<item id="4573" chance="100"/>
		<item id="4574" chance="100"/>
		<item id="4575" chance="100"/>
		<item id="4576" chance="100"/>
		<item id="4577" chance="100"/>
		<item id="4578" chance="100"/>
		<item id="4579" chance="100"/>
		<item id="4595" chance="0"/>
		<item id="4566" chance="0"/>
		
		<border align="outer" id="11"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="white gravel" type="ground" server_lookid="104" z-order="2900">
		<item id="104" chance="1000"/>
		
		<border align="outer" id="12"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="frozen mud" type="ground" server_lookid="7062" z-order="1500">
		<item id="7062" chance="9"/>
		<item id="7063" chance="1"/>
		<item id="7064" chance="1"/>
		<item id="7065" chance="1"/>
		<item id="7066" chance="1"/>
		
		<border align="outer" id="44">
			-- frozen mud vs. with lower z-order --
			<specific>
				<conditions>
					<match_border id="5" edge="s"/>
					<match_border id="44"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="s" with="6661"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="n"/>
					<match_border id="44"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="n" with="6659"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="s"/>
					<match_border id="44"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="s" with="6665"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="n"/>
					<match_border id="44"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="n" with="6663"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="e"/>
					<match_border id="44"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="e" with="6660"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="w"/>
					<match_border id="44"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="w" with="6662"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="e"/>
					<match_border id="44"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="e" with="6664"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="5" edge="w"/>
					<match_border id="44"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="5" edge="w" with="6666"/>
				</actions>
			</specific>
		</border>
		<border align="inner" id="47" to="sea">
			-- snow vs. frozen mud border --
			<specific>
				<conditions>
					<match_border id="6" edge="s"/>
					<match_border id="47"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="e" with="6672"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="n"/>
					<match_border id="47"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="e" with="6668"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="s"/>
					<match_border id="47"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="w" with="6674"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="n"/>
					<match_border id="47"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="w" with="6670"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="e"/>
					<match_border id="47"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="s" with="6673"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="w"/>
					<match_border id="47"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="s" with="6669"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="e"/>
					<match_border id="47"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="n" with="6671"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="6" edge="w"/>
					<match_border id="47"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="n" with="6667"/>
				</actions>
			</specific>
			
			-- frozen mud vs. with higher z-order --
			<specific>
				<conditions>
					<match_group group="1" edge="s"/>
					<match_border id="47"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="e" with="6664"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="n"/>
					<match_border id="47"  edge="e"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="e" with="6660"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="s"/>
					<match_border id="47"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="w" with="6666"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="n"/>
					<match_border id="47"  edge="w"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="w" with="6662"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="e"/>
					<match_border id="47"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="s" with="6665"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="w"/>
					<match_border id="47"  edge="s"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="s" with="6661"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="e"/>
					<match_border id="47"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="n" with="6663"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_group group="1" edge="w"/>
					<match_border id="47"  edge="n"/>
				</conditions>
				<actions>
					<replace_border id="47" edge="n" with="6659"/>
				</actions>
			</specific>
		</border>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="frozen mud (thick border)" type="ground" server_lookid="7062" z-order="6120">
		<item id="9068" chance="9"/>
		<item id="9069" chance="1"/>
		<item id="9070" chance="1"/>
		<item id="9071" chance="1"/>
		<item id="9072" chance="1"/>
		
		<border align="outer" id="46"/>
		<border align="outer" id="46" to="none"/>
	</brush>
	
	<brush name="dirt" type="ground" server_lookid="103" z-order="1000">
		<item id="103" chance="1"/>
		<item id="4833" chance="0"/>
		<item id="4832" chance="0"/>
		<item id="806" chance="0"/>
		<item id="804" chance="0"/>
		
		<border align="outer" id="13"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="light dirt" type="ground" server_lookid="194" z-order="1300">
		<item id="194" chance="1"/>
		
		<border align="outer" id="14"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="fur carpet" type="ground" server_lookid="6804" z-order="15000">
		<item chance="50" id="6804"/>
		<item chance="10" id="6805"/>
		<item chance="10" id="6806"/>
		<item chance="10" id="6807"/>
		<item chance="10" id="6808"/>
		<item chance="10" id="6809"/>
		
		<border align="outer" id="56"/>
	</brush>
	
	<brush name="melting ground" type="ground" server_lookid="5815" z-order="1400">
		<item id="5815" chance="1"/>
		
		<border align="outer" id="42"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="tar pit" type="ground" server_lookid="708" z-order="105">
		<item id="708" chance="850"/>
		<item id="709" chance="50"/>
		<item id="710" chance="50"/>
		<item id="711" chance="50"/>
		
		<friend name="lava"/>
		<friend name="sea"/>
	</brush>
	
	<brush name="clear water" type="ground" server_lookid="493" z-order="110">
		<item id="493" chance="1"/>
		
		<friend name="sea"/>
		<friend name="tar pit"/>
		<friend name="lava"/>
	</brush>
	
	<brush name="swamp" type="ground" server_lookid="4691" z-order="4000">
		<item id="4691" chance="220"/>
		<item id="4692" chance="33"/>
		<item id="4693" chance="33"/>
		<item id="4694" chance="34"/>
		<item id="4695" chance="33"/>
		<item id="4696" chance="33"/>
		<item id="4697" chance="0"/>
		<item id="4698" chance="33"/>
		<item id="4699" chance="33"/>
		<item id="4700" chance="34"/>
		<item id="4701" chance="33"/>
		<item id="4749" chance="33"/>
		<item id="4750" chance="33"/>
		<item id="4751" chance="34"/>
		<item id="4752" chance="33"/>
		<item id="4753" chance="12"/>
		<item id="4754" chance="12"/>
		<item id="4755" chance="12"/>
		
		<border align="outer" id="15"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="dark swamp" type="ground" server_lookid="4702" z-order="4005">
		<item id="4702" chance="4"/>
		<item id="4703" chance="1"/>
		<item id="4704" chance="1"/>
		<item id="4705" chance="1"/>
		<item id="4706" chance="1"/>
		<item id="4707" chance="1"/>
		<item id="4708" chance="1"/>
		<item id="4709" chance="1"/>
		<item id="4710" chance="1"/>
		<item id="4711" chance="1"/>
		<item id="4712" chance="1"/>
		
		<border align="outer" id="57"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="walkable swamp" type="ground" server_lookid="4691" z-order="4000">
		<item id="6353" chance="220"/>
		
		<border align="outer" id="15"/>
		<border align="inner" to="none" id="1"/>
	</brush>
	
	<brush name="flat roof" type="ground" server_lookid="920" z-order="8000">
		<item id="920" chance="1"/>
		<item id="924" chance="0"/>
		<item id="5081" chance="0"/>
		
		<border align="outer" to="none" id="4"/>
	</brush>
	
	<brush name="green bamboo roof" type="ground" server_lookid="6172" z-order="8020">
		<item id="6172" chance="1"/>
		<item id="6173" chance="0"/>
		<item id="6174" chance="0"/>
		
		<border align="outer" to="none" id="32"/>
		<border align="outer" id="32"/>
	</brush>
	
	<brush name="brown bamboo roof" type="ground" server_lookid="3348" z-order="8010">
		<item id="3348" chance="1"/>
		
		<border align="outer" to="none" id="31"/>
		<border align="outer" id="31"/>
	</brush>
	
	<brush name="stiff bamboo roof, horizontal" type="ground" server_lookid="6213" z-order="7960">
		<item id="6213" chance="1"/>
		
		<border align="outer" to="none" id="123"/>
		<border align="outer" id="123"/>
	</brush>
	
	<brush name="stiff bamboo roof, vertical" type="ground" server_lookid="6210" z-order="7960">
		<item id="6210" chance="1"/>
		
		<border align="outer" to="none" id="124"/>
		<border align="outer" id="124"/>
	</brush>
	
	<brush name="mountain" type="ground" server_lookid="918" z-order="9900">
		<item id="919" chance="1"/>
		
		<border align="inner" to="icy mountain" id="53"/>
		<border align="inner" to="snowy mountain" id="53"/>
		<border align="inner" to="none" id="3"/>
		<border align="outer" to="none" id="51"/>
		<border align="outer" id="10"/>
		<border align="inner" id="3"/>
		<optional id="29"/>
	</brush>
	
	<brush name="stone floor" type="ground" server_lookid="431" z-order="1">
		<item id="431" chance="1000"/>
		
		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
	</brush>
	
	<brush name="snowy mountain" type="ground" server_lookid="671" z-order="9901" solo_optional="true">
		<item id="6869" chance="1"/>
		
		<border align="inner" to="none" id="53"/>
		<border align="outer" to="none" id="52"/>
		<!-- <border align="inner" to="icy mountain" id="133"/> -->
		<border align="inner" id="53"/>
		<border align="outer" id="52"/>
	</brush>
	
	<brush name="icy mountain" type="ground" server_lookid="671" z-order="9902" solo_optional="true">
		<item id="6925" chance="1"/>
		
		<border align="inner" to="none" id="53"/>
		<border align="outer" to="none" id="52"/>
		<!-- <border align="inner" to="snowy mountain" id="133"/> -->
		<border align="inner" id="53"/>
		<border align="outer" id="52"/>
	</brush>
	
	<brush name="icy earth" type="ground" lookid="6618" z-order="10600">
		<item id="6838" chance="150"/>
		
		<border align="outer" to="earth" id="6"/>
		<border align="outer" to="earth (stone border)" id="6"/>
		<border align="outer" id="122">
			-- Handles for the 8 different specific cases which might occur with icy earth/earth borders --
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7105"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="6835"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="7104"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6834"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7103"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="6837"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="7102"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6836"/>
				</actions>
			</specific>
			
			-- Handles for the 8 different specific cases which might occur with icy earth/earth borders --
			<specific>
				<conditions>
					<match_border id="22" edge="s"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7105"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="n"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="6835"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="s"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="7104"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="n"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6834"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="e"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7103"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="w"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="6837"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="e"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="7102"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="w"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6836"/>
				</actions>
			</specific>
		</border>
		<border align="outer" to="none" id="122">
			-- Handles for the 8 different specific cases which might occur with icy earth/earth borders --
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7105"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="6835"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="s"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="7104"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="n"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6834"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7103"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="6837"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="e"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="7102"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="21" edge="w"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6836"/>
				</actions>
			</specific>
			
			-- Handles for the 8 different specific cases which might occur with icy earth/earth borders --
			<specific>
				<conditions>
					<match_border id="22" edge="s"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7105"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="n"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="6835"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="s"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="7104"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="n"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6834"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="e"/>
					<match_border id="122"  edge="cse"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cse" with="7103"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="w"/>
					<match_border id="122"  edge="csw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="csw" with="6837"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="e"/>
					<match_border id="122"  edge="cne"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cne" with="7102"/>
				</actions>
			</specific>
			
			<specific>
				<conditions>
					<match_border id="22" edge="w"/>
					<match_border id="122"  edge="cnw"/>
				</conditions>
				<actions>
					<replace_border id="122" edge="cnw" with="6836"/>
				</actions>
			</specific>
		</border>
	</brush>
	
	<brush name="wooden floor" type="ground" server_lookid="405" z-order="1">
		<item id="405" chance="1"/>
	</brush>
	
	<brush name="wooden floor (with border)" type="ground" server_lookid="405" z-order="110">
		<item id="9067" chance="1"/>
		
		<border id="41" align="outer"/>
		<border id="41" to="none" align="outer"/>
	</brush>
	
	<brush name="wooden ladder trapdoor" type="ground" server_lookid="427" z-order="7505">
		<item id="427" chance="1"/>
		
		<friend name="wooden floor"/>

		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
		
		<optional id="41"/>
	</brush>
	
	<brush name="wooden ladder hole" type="ground" server_lookid="428" z-order="7505">
		<item id="428" chance="1"/>
		<item id="409" chance="0"/>
		
		<friend name="wooden floor"/>
		<friend name="wooden ladder trapdoor"/>
		
		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
		
		<optional id="41"/>
	</brush>
	
	<brush name="wooden trapdoor" type="ground" server_lookid="429" z-order="7505">
		<item id="429" chance="1"/>
		
		<friend name="wooden floor"/>
		<friend name="wooden ladder trapdoor"/>
		<friend name="wooden ladder hole"/>
		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
		
		<optional id="41"/>
	</brush>
	
	<brush name="stairs down" type="ground" server_lookid="411" z-order="8000">
		<item id="411" chance="1"/>
		<item id="423" chance="0"/>
		
		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
	</brush>
	
	<brush name="trapdoor down" type="ground" server_lookid="410" z-order="8000">
		<item id="410" chance="1"/>
		
		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
	</brush>
	
	<brush name="trapdoor ladder down" type="ground" server_lookid="369" z-order="7505">
		<item id="369" chance="1"/>
		<item id="370" chance="0"/>
		<item id="408" chance="0"/>
		
		<friend name="earth"/>
		<friend name="icy earth"/>
		<friend name="mountain"/>
	</brush>
	
	<brush name="stone stairway (ground)" type="ground" server_lookid="3219" z-order="7900">
		<item id="3219" chance="10"/>
		<item id="3220" chance="10"/>
	</brush>
	
	<brush name="stone stairway" type="doodad" server_lookid="3219" draggable="true" on_blocking="true" redo_borders="true" one_size="true" thickness="100/100">
		<alternate> <item id="3219" chance="10"/> </alternate>
		<alternate> <item id="3220" chance="10"/> </alternate>
	</brush>
	
	<brush name="black stone stairs" type="doodad" server_lookid="4834" draggable="true" on_blocking="true" redo_borders="true" one_size="true" thickness="100/100">
		<item id="4834" chance="10"/>
	</brush>
	
	<brush name="black stone trapdoor" type="doodad" server_lookid="4835" draggable="true" on_blocking="true" redo_borders="true" one_size="true" thickness="100/100">
		<item id="4835" chance="10"/>
	</brush>
	
	<brush name="gray stone stairs" type="doodad" server_lookid="4836" draggable="true" on_blocking="true" redo_borders="true" one_size="true" thickness="100/100">
		<item id="4836" chance="10"/>
	</brush>
	
	<brush name="gray stone trapdoor" type="doodad" server_lookid="4837" draggable="true" on_blocking="true" redo_borders="true" one_size="true" thickness="100/100">
		<item id="4837" chance="10"/>
	</brush>
	
	<brush name="white marble floor" type="ground" server_lookid="406" z-order="1">
		<item id="406" chance="1"/>
		
	</brush>
	
	<brush name="dark tiled sandstone" type="ground" server_lookid="412" z-order="7500">
		<item id="412" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="dark sandstone" type="ground" server_lookid="790" z-order="500">
		<item id="790" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="sandstone" type="ground" server_lookid="777" z-order="8600">
		<item id="777" chance="1"/>
		
		<border super="true" align="inner" ground_equivalent="777">
			<borderitem edge="n"   item="778"/>
			<borderitem edge="e"   item="781"/>
			<borderitem edge="s"   item="779"/>
			<borderitem edge="w"   item="780"/>
			<borderitem edge="cnw" item="786"/>
			<borderitem edge="cne" item="787"/>
			<borderitem edge="csw" item="789"/>
			<borderitem edge="cse" item="788"/>
			<borderitem edge="dnw" item="782"/>
			<borderitem edge="dne" item="783"/>
			<borderitem edge="dsw" item="785"/>
			<borderitem edge="dse" item="784"/>
		</border>
		
		<border super="true" align="inner" to="none" ground_equivalent="777">
			<borderitem edge="n"   item="778"/>
			<borderitem edge="e"   item="781"/>
			<borderitem edge="s"   item="779"/>
			<borderitem edge="w"   item="780"/>
			<borderitem edge="cnw" item="786"/>
			<borderitem edge="cne" item="787"/>
			<borderitem edge="csw" item="789"/>
			<borderitem edge="cse" item="788"/>
			<borderitem edge="dnw" item="782"/>
			<borderitem edge="dne" item="783"/>
			<borderitem edge="dsw" item="785"/>
			<borderitem edge="dse" item="784"/>
		</border>
	</brush>
	
	<brush name="stairs" type="ground" server_lookid="459" z-order="7950">
		<item id="459" chance="1"/>
		
		<enemy name="all"/>
	</brush>
	
	<brush name="black marble floor" type="ground" server_lookid="407" z-order="1">
		<item id="407" chance="1"/>	
	</brush>
	
	<brush name="gray stone tiles" type="ground" server_lookid="424" z-order="1">
		<item id="424" chance="1"/>		

	</brush>
	
	<brush name="gray stone tiles pressed" type="ground" server_lookid="425" z-order="7950">
		<item id="425" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="gray stone tiles depressed" type="ground" server_lookid="426" z-order="7950">
		<item id="426" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="small tiled gray stone" type="ground" server_lookid="7355" z-order="7950">
		<item id="7355" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="drawbridge" type="ground" server_lookid="1284" z-order="7800">
		<item id="1284" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="drab tiled stone floor" type="ground" server_lookid="413" z-order="1">
		<item id="413" chance="10"/>		
	</brush>
	
	<brush name="dark tiled stone floor" type="ground" server_lookid="414" z-order="500">
		<item id="414" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="light tiled stone floor" type="ground" server_lookid="420" z-order="500">
		<item id="420" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="tiled sandstone floor" type="ground" server_lookid="419" z-order="500">
		<item id="419" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="tiled sandstone floor pressed" type="ground" server_lookid="417" z-order="500">
		<item id="417" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="tiled sandstone floor depressed" type="ground" server_lookid="416" z-order="500">
		<item id="416" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="orange tiled floor" type="ground" server_lookid="415" z-order="500">
		<item id="415" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="ice stone floor" type="ground" server_lookid="6967" z-order="500">
		<item id="6967" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="dark wooden floor (seabed)" type="ground" server_lookid="5744" z-order="7950">
		<item id="5744" chance="1"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="dark wooden floor" type="ground" server_lookid="3139" z-order="8500">
		<item id="3139" chance="1"/>
		
		<border align="outer" to="none" id="40"/>
		
		<friend name="all"/>
	</brush>
	
	<brush name="brick roof, vertical" type="ground" server_lookid="929" z-order="8500">
		<item id="929" chance="1000"/>
		
		<border align="outer" to="none" id="23"/>
	</brush>
	
	<brush name="brick roof, left" type="ground" server_lookid="926" z-order="8500">
		<item id="926" chance="1000"/>
		
		<border align="outer" to="none" id="24"/>
	</brush>
	
	<brush name="brick roof, right" type="ground" server_lookid="927" z-order="8500">
		<item id="927" chance="1000"/>
		
		<border align="outer" to="none" id="25"/>
	</brush>
	
	<brush name="brick roof, up" type="ground" server_lookid="936" z-order="8500">
		<item id="936" chance="1000"/>
		
		<border align="outer" to="none" id="26"/>
	</brush>
	
	<brush name="brick roof, down" type="ground" server_lookid="937" z-order="8500">
		<item id="937" chance="1000"/>
		
		<border align="outer" to="none" id="28"/>
	</brush>
	
	<brush name="brick roof, horizontal" type="ground" server_lookid="939" z-order="8500">
		<item id="939" chance="1000"/>
		
		<border align="outer" to="none" id="27"/>
	</brush>
	
	<brush name="wooden roof, up" type="ground" server_lookid="946" z-order="8500">
		<item id="946" chance="1000"/>
		
		<border align="outer" to="none" id="34"/>
		<border align="outer" id="34"/>
	</brush>
	
	<brush name="wooden roof, horizontal" type="ground" server_lookid="947" z-order="8500">
		<item id="947" chance="1000"/>
		
		<border align="outer" to="none" id="35"/>
		<border align="outer" id="35"/>
	</brush>
	
	<brush name="wooden roof, down" type="ground" server_lookid="948" z-order="8500">
		<item id="948" chance="1000"/>
		
		<border align="outer" to="none" id="36"/>
		<border align="outer" id="36"/>
	</brush>
	
	<brush name="wooden roof, right" type="ground" server_lookid="958" z-order="8500">
		<item id="958" chance="1000"/>
		
		<border align="outer" to="none" id="37"/>
		<border align="outer" id="37"/>
	</brush>
	
	<brush name="wooden roof, vertical" type="ground" server_lookid="957" z-order="8500">
		<item id="957" chance="1000"/>
		
		<border align="outer" to="none" id="38"/>
		<border align="outer" id="38"/>
	</brush>
	
	<brush name="wooden roof, left" type="ground" server_lookid="956" z-order="8500">
		<item id="956" chance="1000"/>
		
		<border align="outer" to="none" id="39"/>
		<border align="outer" id="39"/>
	</brush>
	
	<brush name="pavement" type="ground" server_lookid="7348" z-order="1">
		<item id="7348" chance="10"/>
	</brush>

</materials>
